package com.carrot.uaa.infrastructure.redis;

import com.carrot.uaa.entity.RedisClient;
import org.springframework.data.repository.CrudRepository;

import java.util.Optional;

public interface RedisClientRepository extends CrudRepository<RedisClient,String> {
    /**
     * 根据客户端Id查询客户端信息
     *
     * @param clientId 客户端id
     * @return 客户端信息
     */
    Optional<RedisClient> findByClientId(String clientId);
}
